package com.abc.wy.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BaseException extends Exception {

    private IErrorCode errorCode;

    public BaseException(IErrorCode errorCode) {
        super(errorCode.toString());
        this.errorCode = errorCode;
    }
}
